package demo04.personOperation.dao;

import demo04.personOperation.pojo.Person;

import java.sql.SQLException;
import java.util.List;

public interface PersonDao {

    public boolean insert(List<Person> people);

    public boolean update(Person person);

    public boolean delete(String[] ids);

    public List<Person> getAll();

    public boolean login(String loginname, String userpwd) throws SQLException;

    public List<Person> getUserForPage(int pagesize, int pageOrder);

    public Person getUserById(int id);
}
